package TemplateMethod;

public abstract class TestTemplate {

    public abstract void ability1();
    public abstract void ability2();
    public abstract void ability3();
    public void start(){
        System.out.println("开播辣！");
    }

    public final void live(){
        start();
        ability1();
        ability2();
        ability3();
    }
}

class laoba extends TestTemplate{
    @Override
    public void ability1() {
        System.out.println("我可以吃屎");
    }

    @Override
    public void ability2() {
        System.out.println("我可以做汉堡");
    }

    @Override
    public void ability3() {
        System.out.println("我可以演陈泽");
    }
}

class lili extends TestTemplate{
    @Override
    public void ability1() {
        System.out.println("我可以亏内丁真");
    }

    @Override
    public void ability2() {
        System.out.println("我可以亏内你妈");
    }

    @Override
    public void ability3() {
        System.out.println("我可以偷刀割老婆");
    }
}
